package TestDemo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-03-13
 * Time: 16:31
 */
class Base{
    public int a;
    public int b;
}

class Derised extends Base{
    public int c;
    public void methed(){
        a = 10;
        b = 20;
        c = 30;
    }
}
public class Test {
    public static void main(String[] args) {
        Derised derised = new Derised();
        derised.methed();
        System.out.println(derised.a + " " + derised.b + " " + derised.c + " " );
    }
}
